﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MsgEntity
{    
    public  enum MessageItem
    {
        SyncTag = 2,
        Version = 1,
        PacketLength = 2,
        PayloadId = 1,
        MessageId = 4,
        PeerId = 4,
        Crc = 2

    }

    public  enum MessageType
    {
        Auth = 0x37,
        AuthReturn = 0x38,
        HeartBeat = 0x39,
        Updata = 0x40,
        Upconfirm = 0x41,
        RawDataSearch = 0x42,
        RawData = 0x43,
        RawDataConfirm = 0x44
    }

    public enum HeartBeatItem
    {
        RealsaleCode = 9,
        Datetime = 20
    }

    public enum AuthItem
    {
        Username = 33,
        Password = 33,
        SoftwareMd5 = 33,
        RawdataCount = 4
    }

    public enum UpdataItem
    {
        Count=2,
        business_date = 11,
        cinema_code = 9,
        onlinesale_code = 9,
        screen_code = 17,
        film_code = 13,
        session_code = 17,
        session_datetime = 20,
        operation = 1,
        code = 17,
        seat_code = 17,
        price = 4,
        service = 4,
        online_sale = 1,
        datetime = 20,
        Signature=128        
    }

    public enum ReciveMsg
    {
        AuthSuccess,
        AuthFail,
        DataUpSuccess,
        DataUpFail
    }
}
